/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}

.client-container {
    display: flex;
    min-height: 100vh;
}

/* 左侧菜单栏样式 */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #1e5799, #207cca);
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.user-info {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-icon {
    font-size: 64px;
    margin-bottom: 15px;
    color: #fff;
}

.card-id, .balance {
    font-size: 16px;
    margin: 8px 0;
    font-weight: 500;
}

.menu {
    padding: 20px 0;
}

.menu-btn {
    display: block;
    width: 100%;
    padding: 14px 30px;
    text-align: left;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.menu-btn i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
}

.menu-btn:hover, .menu-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 4px solid #4CAF50;
}

.logout-btn {
    margin-top: 20px;
    background: rgba(255, 99, 71, 0.1);
    border-left: 4px solid transparent !important;
}

.logout-btn:hover {
    background: rgba(255, 99, 71, 0.2) !important;
    color: #ff6347 !important;
}

/* 右侧内容区域样式 */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #f5f7fa;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 12px;
    color: #1e5799;
}

/* 错误消息样式 */
.error-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

/* 表单样式 */
.form-container {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #1e5799;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 87, 153, 0.2);
}

.static-value {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 16px;
}

.submit-btn {
    background: linear-gradient(135deg, #1e5799, #207cca);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    font-weight: 500;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #16467e, #1a68a9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 87, 153, 0.2);
}

.submit-btn.danger {
    background: linear-gradient(135deg, #c62828, #d32f2f);
}

.submit-btn.danger:hover {
    background: linear-gradient(135deg, #b71c1c, #c62828);
}

/* 首页样式 */
.welcome-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.card-header {
    background: linear-gradient(135deg, #1e5799, #207cca);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
}

.card-header i {
    font-size: 28px;
    margin-right: 15px;
}

.card-header h3 {
    margin: 0;
    font-size: 22px;
}

.card-body {
    padding: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item span:first-child {
    font-weight: 500;
    color: #555;
}

.quick-actions h3 {
    display: flex;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.quick-actions h3 i {
    margin-right: 10px;
    color: #1e5799;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.action-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #444;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #1e5799;
    color: #1e5799;
}

.action-btn i {
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
    color: #1e5799;
}

/* 挂失警告样式 */
.warning-box {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border-radius: 0 4px 4px 0;
}

.warning-box i {
    font-size: 24px;
    color: #ffc107;
    margin-right: 15px;
}

.warning-box p {
    margin: 0;
    color: #333;
}

/* 交易记录样式 */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.balance-info {
    font-size: 18px;
    font-weight: 500;
}

.balance-info span:last-child {
    color: #1e5799;
    font-weight: bold;
}

.refresh-btn {
    background: #e3f2fd;
    color: #1e5799;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: #bbdefb;
}

.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 20px;
    text-align: left;
}

thead {
    background: linear-gradient(135deg, #1e5799, #207cca);
    color: white;
}

th {
    font-weight: 500;
}

tbody tr {
    border-bottom: 1px solid #eee;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #f9f9f9;
}

.export-container {
    text-align: right;
}

.export-btn {
    background: #e8f5e9;
    color: #2e7d32;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.export-btn i {
    margin-right: 8px;
}

.export-btn:hover {
    background: #c8e6c9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .client-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content {
        padding: 20px;
    }

    .action-buttons {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}